<template>
  <SmsConfig v-bind="stats.data"/>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
import { useDesign } from '/@/hooks/web/useDesign';
import { ConfigKey } from '/@/views/system/config/config.model';
import SmsConfig from './SmsConfig.vue'
import { FormSchema } from '/@/components/Table';

const aliYunFormSchema : FormSchema[] = [
  {
    field: 'accessKey',
    label: 'accessKey',
    // required: true,
    component: 'Input',
  },
  {
    field: 'accessKeySecret',
    helpMessage: 'accessKeySecret',
    label: 'keySecret',
    componentProps: {
      placeholder: '请输入accessKeySecret'
    },
    required: true,
    component: 'Input',
  },
  {
    field: 'signName',
    helpMessage: '代表短信的中【xxx】中的内容',
    label: '短信签名名',
    required: true,
    component: 'Input',
  },
];


const stats = ref({
  data: { configKey: ConfigKey.SMS_ALIYUN, formSchema: aliYunFormSchema},
})

const { prefixCls } = useDesign('config-center');

</script>

<style lang="less">
@import '../../style.less';
</style>
